package chetan.ChildView;



import android.app.TabActivity;
import android.content.Intent;
import android.content.res.Resources;
import android.os.Bundle;
import android.widget.TabHost;

public class ChildView extends TabActivity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
		TabHost tabHost = getTabHost();  // The activity TabHost
		TabHost.TabSpec spec;  // Reusable TabSpec for each tab
		Intent intent;  // Reusable Intent for each tab		

		// Initialize a TabSpec for each tab and add it to the TabHost
		intent = new Intent().setClass(this, CameraOnTopActivity.class);
		spec = tabHost.newTabSpec("Camera").setIndicator("Camera")
				.setContent(intent);
		tabHost.addTab(spec);
		
		//camera preview
		intent = new Intent().setClass(this,VideoOnTopActivity.class);
		spec = tabHost.newTabSpec("Video").setIndicator("Video")
				.setContent(intent);
		tabHost.addTab(spec);
		tabHost.setCurrentTab(0);

    }
}